import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/addxing',
      component: () => import('../views/fangxing/Addxing.vue'),
    },
    {
      path: '/loginxing',
      component: () => import('../views/fangxing/Loginxing.vue'),
    },
    {
      path: '/showxing',
      component: () => import('../views/fangxing/Showxing.vue'),
    },
    {
      path: '/addhao',
      component: () => import('../views/danghao/Addhao.vue'),
    },
    {
      path: '/showhao',
      component: () => import('../views/danghao/Showhao.vue'),
    },
    {
      path: '/shewxing',
      component: () => import('../views/fangxing/Shewxing.vue'),
    },
    {
      path: '/snowxing',
      component: () => import('../views/fangxing/Snowxing.vue'),
    },
    {
      path: '/showxlng',
      component: () => import('../views/fangxing/Showxlng.vue'),
    },
    {
      path: '/shewhao',
      component: () => import('../views/danghao/Shewhao.vue'),
    },
    {
      path: '/showheo',
      component: () => import('../views/danghao/Showheo.vue'),
    },
    {
      path: '/loginpai',
      component: () => import('../views/paifang/Loginpai.vue'),
    },
    {
      path: '/showpai',
      component: () => import('../views/paifang/showpai.vue'),
    },
    {
      path: '/shewpai',
      component: () => import('../views//paifang/shewpai.vue'),
    },


  ],
})

export default router
